package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.domain.UserRole;
import org.example.vo.DriverVo;

import java.util.List;

/**
 * @author 19816
 * @description 针对表【sys_user_role】的数据库操作Mapper
 * @createDate 2024-05-22 20:37:42
 * @Entity org.example.domain.UserRole
 */
public interface UserRoleMapper {

    @Insert("insert into sys_user_role set user_id=#{userId}")
    void add(UserRole userRole);

    void deleteUser(Integer id);

    List<DriverVo> listAll();

    Integer queryUser(String username);

    String queryRoleByUserId(String id);
}




